package com.nineclock.system.service;

import com.nineclock.common.entity.PageResult;
import com.nineclock.model.dto.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface SysCompanyService {
    List<SysCompanyDTO> queryCompanyListByUserId(Long userId);

    /**
     * 获取企业的详细详细
     * @return
     */
    SysCompanyDTO queryCompanyInfo();

    /**
     * 上传企业logo标识
     * @param file
     * @return
     */
    String uploadCompanyLogo(MultipartFile file);

    /**
     * 更新企业基本信息
     * @param sysCompanyDTO
     */
    void updateCompanyInfo(SysCompanyDTO sysCompanyDTO);

    SysCompanyUserDTO getCurrentAdmin();

    void updateCompanyAdmin(SysChangeMainManagerDTO sysChangeMainManagerDTO);

    PageResult pageRole(Integer page,Integer pageSize);

    List<SysRoleDTO> permissions();

    List<SysCompanyDTO> queryCompanyByName(String keyword);

    void applyJoinCompany(SysApplyJoinCompanyUserDTO sysApplyJoinCompanyUserDTO);
}
